//
//  MYSingleton.h
//  JQLive
//
//  Created by Bruce on 2020/3/24.
//  Copyright © 2020 mlqk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MXSlideShowView.h"
//#import "JQLiveTools.h"

NS_ASSUME_NONNULL_BEGIN

@class TIMUserProfile;

@interface MYSingleton : NSObject

+ (instancetype)defaultSingleton;
@property(nonatomic,strong) NSString* currentColor;//当前首页颜色
@property(nonatomic,strong) UIColor* m_color;//当前颜色
@property(nonatomic,assign) BOOL isCheck;//是否审核
@property(nonatomic,strong) NSArray *categoryArray;//首页分类数据
@property(nonatomic,assign) BOOL isFirstOrder;//是否首单用户

@property(nonatomic,strong) MXSlideShowView *m_slideShowView;

- (void)showAudioCallWithMyInfor:(TIMUserProfile *)myProfile
                           other:(TIMUserProfile *)otherProfile
                        chatType:(NSInteger)chatType
                          roomId:(NSString *)roomId
                        isFromMe:(BOOL)isFromMe;

//通用跳转（暂定）
- (void)commonToPushVCWithUrl:(NSString *)url;

- (CGFloat)loadPriceWithArray:(NSArray *)arrray
                         type:(NSInteger)type
               isFromShopCart:(BOOL)isFromShopCart;

- (UIViewController *)topViewController;

//检测登录状态
- (BOOL)checkLogin;
@end

NS_ASSUME_NONNULL_END
